home *** CD-ROM | disk | FTP | other *** search
- /* %filename% -- modeless dialog methods */
- /* Created %date% %time% by AppMaker */
-
- /* We recommend that you not modify this module and instead modify */
- /* its subclass, %dlogname%. The 'z' prefix on this module marks% %*/
- /* a module which is likely to be regenerated by AppMaker after you */
- /* make changes to the user interface. The modules without the 'z' */
- /* prefix will not be regenerated by AppMaker unless you delete them. */
- /* Using a separate subclass to override the AppMaker-generated code */
- /* lets you regenerate code without losing your hand-coded changes. */
-
- #include <Commands.h>
- #include <CDesktop.h>
- #include <CDialog.h>
- #include <CRadioGroup.h>
- #include "z%dlogname%.h"
-
- extern CDesktop *gDesktop;
-
- #define %dlogname%ID %rsrcID%
-
- /*----------*/
- void Z%dlogname%::I%dlogname% (CBureaucrat *aSupervisor)
- {
- CDialog *itsDialog;
- CView *enclosure;
- CBureaucrat *supervisor;
- CPane *itsMainPane;
- CRadioGroup *aGroup;
-
- inherited::IDirector (aSupervisor);
-
- itsDialog = new (CDialog);
- itsDialog->IDialog (%rsrcID%, gDesktop, this);
- itsWindow = itsDialog;
-
- enclosure = itsDialog;
- supervisor = this;
- %for each item gen create%
-
- } /* I%dlogname% */
-
- %for each item gen zMake%
- /*----------*/
- void Z%dlogname%::CloseWind (CWindow *theWindow)
- {
- theWindow->Hide ();
- } /* CloseWind */
-
- /*----------*/
- void Z%dlogname%::DoCommand (long theCommand)
- {
- switch (theCommand) {
- case cmdClose:
- CloseWind (itsWindow);
- break;
- default:
- inherited::DoCommand (theCommand);
- break;
- } /* switch */
-
- } /* DoCommand */
-
- /* %unitname% */